package com.quiz.bis.domain.bo;

import lombok.Data;

/**
 * 自动组卷请求参数
 * @author ahuan
 */
@Data
public class BisPaperAutoBo {
    private Long paperId;
    private String paperName;
    private String description;
    private Long categoryId;
    private Integer totalScore;
    private Integer passScore;
    private QuestionCountConfig questionCountConfig;
    private DifficultyConfig difficultyConfig;
    private QuestionScoreConfig questionScoreConfig; // 新增题型分数配置

    @Data
    public static class QuestionCountConfig {
        private Integer singleChoiceCount;
        private Integer multipleChoiceCount;
        private Integer fillBlankCount;
        private Integer trueFalseCount;
        private Integer essayCount;
    }

    @Data
    public static class DifficultyConfig {
        private Double easyRatio;
        private Double slightlyEasyRatio;
        private Double mediumRatio;
        private Double slightlyHardRatio;
        private Double hardRatio;
    }

    // 新增题型分数配置类
    @Data
    public static class QuestionScoreConfig {
        private Integer singleChoiceScore = 2; // 默认分数
        private Integer multipleChoiceScore = 4;
        private Integer fillBlankScore = 2;
        private Integer trueFalseScore = 1;
        private Integer essayScore = 10;
    }
}